﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VKeyboard
{
    public partial class KeyboardHolder : Form
    {
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams param = base.CreateParams;
                param.ExStyle |= 0x08000000;
                return param;
            }

        }

        Components.VirtualKeybaoard vk = new Components.VirtualKeybaoard();
        private Bitmap DrawingArea;
        public KeyboardHolder()
        {
            InitializeComponent();
            
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            panel1.Controls.Add(vk);
           
        }

        private void KeyboardHolder_Load(object sender, EventArgs e)
        {
            
            this.TopMost = true;
            this.TopLevel = true;
            this.Location = new System.Drawing.Point((Screen.PrimaryScreen.WorkingArea.Width / 2) - 
            ((this.Width) / 2), Screen.PrimaryScreen.WorkingArea.Height - this.Height);
            this.Cursor = Cursors.Hand;
            Cursor.Clip = new Rectangle(this.Location, this.Size);
            
        }
    }
}
